<!DOCTYPE html>
<html>
<head>
<script>

function boom()
{
  document.body.style.cssFloat = "left";
  document.createElement("div").appendChild(document.querySelector("legend"));
}

</script>
</head>
<body onload="boom();"><fieldset><legend></legend><textarea></textarea></fieldset></body>
</html>
